home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / modelers / geomview / source.lha / Geomview / src / bin / clipboard / blah.h next >
C/C++ Source or Header  |  1993-06-18  |  2KB  |  68 lines

  1. #include <stdio.h>
  2. #include <X11/Intrinsic.h>
  3. #include <X11/Shell.h>
  4. #include <Xm/Xm.h>
  5. #include <Xm/Text.h>
  6. #include <Xm/TextF.h>
  7. #include <Xm/RowColumn.h>
  8. #include <Xm/MainW.h>
  9. #include <Xm/PushB.h>
  10. #include <Xm/PushBG.h>
  11. #include <Xm/ToggleB.h>
  12. #include <Xm/ToggleBG.h>
  13. #include <Xm/DrawingA.h>
  14. #include <Xm/CascadeBG.h>
  15. #include <Xm/SeparatoG.h>
  16. #include <Xm/Frame.h>
  17. #include <Xm/BulletinB.h>
  18. #include <Xm/Scale.h>
  19. #include <Xm/ScrollBar.h>
  20. #include <Xm/Form.h>
  21. #include <Xm/List.h>
  22. #include <Xm/FileSB.h>
  23. #include <Xm/Protocols.h>
  24. #include <Xm/MwmUtil.h>
  25.  
  26.  
  27. /* Structure of mib_Widget */
  28. /*****************************************************************************/
  29.  
  30. typedef struct _mib_Widget {
  31.   char        *mib_class;    /* name of mib class (Button, TextBox, etc..)*/
  32.   int         mib_class_num; /* class number for ez reference :) */
  33.   int         mib_mynum;    /* numbering for storage format */
  34.   Widget     me;        /* Xt widget */
  35.   int         mib_selected;    /* is selected */
  36.   int         mib_resizing;  /* is resizing 1, or being moved 0 */
  37.   int         mib_resizetype;/* 1  = upper left, 2 = upper, 3 = ... */
  38.   int         mib_allowresize; /* can this widget be resized ? */
  39.  
  40.   int         clkx, clky;    /* where user clicked */
  41.  
  42.   void        *myres;        /* my resources (different for each widget) */
  43.  
  44.   char        *name;        /* reference name of this widget */
  45.   int         width, height;    /* width and height */
  46.  
  47.   int   topAttachment, bottomAttachment, leftAttachment, rightAttachment;
  48.                 /* attachments 1=attached 0=not-attached */
  49.  
  50.   int   topOffset, bottomOffset, leftOffset, rightOffset;
  51.                 /* offsets if attached */
  52.  
  53.   struct _mib_Widget *parent;   /* pointer to parent */
  54.   struct _mib_Widget *sibling;  /* remaining linked list of sibling widgets */
  55.   struct _mib_Widget *prev;    /* previous sibling or parent */
  56.   struct _mib_Widget *child;    /* linked list of children widgets */
  57. } mib_Widget;
  58.  
  59. /* mib_load_interface function */
  60. /*****************************************************************************/
  61.  
  62. mib_Widget *mib_load_interface(Widget, char *, int);
  63.  
  64. #define MI_FROMFILE        1
  65. #define MI_EDITFROMFILE        2
  66. #define MI_FROMSTRING        3
  67. #define MI_EDITFROMSTRING    4
  68.